package com.gpipe.tools;

import com.gpipe.dirwatcherRealtime.ConfOfMysqlModel;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Created by user on 2017/11/5.
 */
public class BusConn {
    private String station_id_o;
    private String station_name_o;
    private String lng_o;
    private String lat_o;
    private String lac_ci_o;
    private String station_id_d;
    private String station_name_d;
    private String lng_d;
    private String lat_d;
    private String lac_ci_d;

    public String getKey(){
        return this.lac_ci_o+"|"+this.lac_ci_d;
    }
    public String getODidName(){
        //station_id_o|station_name_o|station_id_d|station_name_d
        return this.station_id_o+"|"+this.station_name_o+"|"+this.station_id_d+"|"+this.station_name_d;
    }

    public BusConn(ResultSet resultSetSubwayConn) throws SQLException {
        this.station_id_o=resultSetSubwayConn.getString(ConfOfMysqlModel.busConnModelParas[0]);
        this.station_name_o=resultSetSubwayConn.getString(ConfOfMysqlModel.busConnModelParas[1]);
        this.lng_o=resultSetSubwayConn.getString(ConfOfMysqlModel.busConnModelParas[2]);
        this.lat_o=resultSetSubwayConn.getString(ConfOfMysqlModel.busConnModelParas[3]);
        this.lac_ci_o=resultSetSubwayConn.getString(ConfOfMysqlModel.busConnModelParas[4]);
        this.station_id_d=resultSetSubwayConn.getString(ConfOfMysqlModel.busConnModelParas[5]);
        this.station_name_d=resultSetSubwayConn.getString(ConfOfMysqlModel.busConnModelParas[6]);
        this.lng_d=resultSetSubwayConn.getString(ConfOfMysqlModel.busConnModelParas[7]);
        this.lat_d=resultSetSubwayConn.getString(ConfOfMysqlModel.busConnModelParas[8]);
        this.lac_ci_d=resultSetSubwayConn.getString(ConfOfMysqlModel.busConnModelParas[9]);
    }


    public String getStation_id_o() {
        return station_id_o;
    }

    public void setStation_id_o(String station_id_o) {
        this.station_id_o = station_id_o;
    }

    public String getStation_name_o() {
        return station_name_o;
    }

    public void setStation_name_o(String station_name_o) {
        this.station_name_o = station_name_o;
    }

    public String getLng_o() {
        return lng_o;
    }

    public void setLng_o(String lng_o) {
        this.lng_o = lng_o;
    }

    public String getLat_o() {
        return lat_o;
    }

    public void setLat_o(String lat_o) {
        this.lat_o = lat_o;
    }

    public String getLac_ci_o() {
        return lac_ci_o;
    }

    public void setLac_ci_o(String lac_ci_o) {
        this.lac_ci_o = lac_ci_o;
    }

    public String getStation_id_d() {
        return station_id_d;
    }

    public void setStation_id_d(String station_id_d) {
        this.station_id_d = station_id_d;
    }

    public String getStation_name_d() {
        return station_name_d;
    }

    public void setStation_name_d(String station_name_d) {
        this.station_name_d = station_name_d;
    }

    public String getLng_d() {
        return lng_d;
    }

    public void setLng_d(String lng_d) {
        this.lng_d = lng_d;
    }

    public String getLat_d() {
        return lat_d;
    }

    public void setLat_d(String lat_d) {
        this.lat_d = lat_d;
    }

    public String getLac_ci_d() {
        return lac_ci_d;
    }

    public void setLac_ci_d(String lac_ci_d) {
        this.lac_ci_d = lac_ci_d;
    }
}
